package com.me.waterphase.listener.contact;

import com.me.waterphase.WaterEnergySource;
import com.me.waterphase.utils.PhysicManager.CONTACT_TYPE;

public class EnergyContact implements ICustomContact {

	private int numberContact;
	private WaterEnergySource source;
	
		
	@Override
	public CONTACT_TYPE getContactType() {
		return CONTACT_TYPE.USERDATA_ENERGY_SENSOR;
	}

	public EnergyContact(WaterEnergySource _source)
	{
		numberContact = 0;
		source = _source;
	}
	
	public void increment(){numberContact++;}
	
	public void decrement(){
		if(numberContact > 0)
			numberContact--;
	}
	
	//Getter
	public int getNumberContact(){return numberContact;}
	public WaterEnergySource getEnergySource(){return source;}
	
	//Setter
	public void setNumberContact(int _number){ numberContact = _number;}
	public void setEnergySource(WaterEnergySource _source){ source = _source;}
	
}
